import {
	http
} from "/utils/http.js"


//修改合同时查询合同
export function getContract(oid){
	return http({
		method:'GET',
		url:`https://huaqing.xgxtravel.com/api/tourist/getOrderById/${oid}`,
	})
}

//修改合同
export function editContract(orderId,userInfoDTO){
	return http({
		method:'PUT',
		url:`https://huaqing.xgxtravel.com/api/common/update/${orderId}`,
		dataType: 'json',
		header: {
			'custom-header': 'put',
			'content-type': 'application/json;charset:utf-8'
		},
		data:userInfoDTO
	})
}

//查询所有路线
export function routesList(){
	return http({
		method:'GET',
		url:`https://huaqing.xgxtravel.com/api/common/listAll`,
		success: function(res) {
			console.log('请求成功', res.data);
		},
			fail: function(err) {
			console.log('请求失败', err);
		}

	})
}
